package day04;

public class WhileDemo {
    public static void main(String[] args) {
        //输出五次“行动是成功的阶梯”
        int time=0;//循环变量初始化
        while(time<5){//循环条件
            System.out.println("行动是成功的阶梯");
            time++;//循环变量改变
        }
        //输出9的乘法表
        int num = 1;
        while (num<=9) {
            System.out.println(num + "*9=" + num * 9);
            num++;
        }



    }
}
